#include<iostream>
using namespace std;
class CVector
{
    private:
        int *data;
        int n;
    public:
        CVector()
        {
            n=5;
            data=new int[n];
            for(int i=0;i<n;i++)
            {
                data[i]=i;
            }
        }
        CVector(int n1,int* a)
        {
            data=new int[n1];
            n=n1;
            for(int i=0;i<n1;i++)
            {
                data[i]=a[i];
            }
        }
        void Print()
        {
            for(int i=0;i<n;i++)
            {
                if(i!=0)
                    cout<<" ";
                cout<<data[i];
            }
            cout<<endl;
        }
        ~CVector()
        {
            if(data)
                delete[] data;
        }

};

int main()
{
    CVector a1;
    a1.Print();
    int N;
    cin>>N;
    int *aa=new int[N];
    for(int i=0;i<N;i++)
    {
        cin>>aa[i];
    }
    CVector a2(N,aa);
    a2.Print();
    delete[] aa;
}